import request from '@/utils/request'

// 查询每日食品安全检查记录列表
export function listFoodSafe(query) {
  return request({
    url: '/Laboratory/foodSafe/list',
    method: 'get',
    params: query
  })
}

// 查询每日食品安全检查记录详细
export function getFoodSafe(id) {
  return request({
    url: '/Laboratory/foodSafe/' + id,
    method: 'get'
  })
}

// 新增每日食品安全检查记录
export function addFoodSafe(data) {
  return request({
    url: '/Laboratory/foodSafe',
    method: 'post',
    data: data
  })
}

// 修改每日食品安全检查记录
export function updateFoodSafe(data) {
  return request({
    url: '/Laboratory/foodSafe',
    method: 'put',
    data: data
  })
}

// 删除每日食品安全检查记录
export function delFoodSafe(id) {
  return request({
    url: '/Laboratory/foodSafe/' + id,
    method: 'delete'
  })
}

// 审批每日食品安全检查记录
export function verifyFoodSafe(data) {
    return request({
      url: '/Laboratory/foodSafe/verify',
      method: 'post',
      data
    })
  }
